﻿<html>  
    <head>  
        <script type="text/javascript">  
            function Stu(name, age){  
                this.name = name;  
                this.age = age;  
                this.show = function(){  
                    window.alert(this.name + " " + this.age);  
                }  
            }  
            function MidStu(name, age) {  
                this.stu = Stu;  
                this.stu(name, age);  
            }  
            var midStu = new MidStu("王先生", 28);  
            midStu.show();  
        </script>  
    </head>  
    <body>  
    </body>  
</html> 
